pp108 : Setting the Process Execution Mode

Setting the Process Execution Mode

This topic describes the procedure to set the process execution mode for business process models.

The process execution mode for a business process can be set as long-lived process, short-lived process or as a page flow. The process execution mode for a business process model must be selected as long-lived process when it includes human interactions, delays, or intermediate messages and takes long time to execute. A process execution mode for a business process must be selected as a short-lived process only when it does not require human intervention and when its average life-span is short. Select page flow as the execution mode when you require the user to fill multiple forms, either HTML pages or User Interface which appear in a wizard-like mode instead of accessing the same through the Process Platform Inbox.

  1. Select a starting point and click (Business Process Model) to open an existing business process model.Alternatively, if the business process model is already open, then perform step 2.
  2. Double-click or right-click in the business process modeling environment and select Properties. The Properties - Business Process Model pane appears.
  3. In the General tab view, select one of the following from the Execution Mode drop-down list.

    Option

    Description

    Long Lived

    This process is asynchronous in nature and takes a long time to execute as the process involves human tasks, delays, and intermediate messages. By default, a process is a long-lived process unless it is specified otherwise.

    Short Lived

    This process is synchronous in nature and has a short life-span.

    Page Flow

    This process will execute in a page flow mode.

    1. To receive a task from the business process in the client UI, you must include the page flow library on application select in the client application. For example,

     application.addLibrary('/cordys/cas/vcm/library/pageflow.htm', pageFlowEnabling);

    Note:
    The library must not be used in case the User Interface is part of the workflow. The library is best suited to invoke a page flow process and continue with the manual tasks present in the page flow.

    Here, the 'pageFlowEnabling' is the ID of some element on the web page.
    2. Pass the SOAP request ( ExecuteProcess request) document to invoke the method in the library. For example,
    pageFlowEnabling.invoke(requestStartPageFlow.XMLDocument);

    3. Detach the page flow library on application close of the page. For example,

    application.removeLibrary('/cordys/cas/vcm/library/pageflow.htm', pageFlowEnabling);
  4. Click .
  5. Set the properties for all activities and complete the Message Map for each activity in the business process.
  6. Right-click in the business process modeling environment and select Business Process Execution > Validate and generate BPML. The business process model is validated. If any errors appear, resolve them.
  7. Publish the business process model to organization.

The process execution mode for a business process is set.

Related information

Process Execution Modes